package com.boc.langxiang.entity.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * CreateTime: 2016-06-27下午3:28
 * Author: wjkjinke00@126.com
 * Description:
 */
public class ArticleEntity implements Parcelable {
    private String id;
    private String ownerid;
    private String photo;
    private String account_id;
    private String designerId;
    private String type;
    private String timeline;
    private String title;
    private String click;
    private String photourl;
    private String author;
    private String headphotourl;
    private String news_id;
    private String content;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(String ownerid) {
        this.ownerid = ownerid;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getAccount_id() {
        return account_id;
    }

    public void setAccount_id(String account_id) {
        this.account_id = account_id;
    }

    public String getDesignerId() {
        return designerId;
    }

    public void setDesignerId(String designerId) {
        this.designerId = designerId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTimeline() {
        return timeline;
    }

    public void setTimeline(String timeline) {
        this.timeline = timeline;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getClick() {
        return click;
    }

    public void setClick(String click) {
        this.click = click;
    }

    public String getPhotourl() {
        return photourl;
    }

    public void setPhotourl(String photourl) {
        this.photourl = photourl;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getHeadphotourl() {
        return headphotourl;
    }

    public void setHeadphotourl(String headphotourl) {
        this.headphotourl = headphotourl;
    }

    public String getNews_id() {
        return news_id;
    }

    public void setNews_id(String news_id) {
        this.news_id = news_id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.ownerid);
        dest.writeString(this.photo);
        dest.writeString(this.account_id);
        dest.writeString(this.designerId);
        dest.writeString(this.type);
        dest.writeString(this.timeline);
        dest.writeString(this.title);
        dest.writeString(this.click);
        dest.writeString(this.photourl);
        dest.writeString(this.author);
        dest.writeString(this.headphotourl);
        dest.writeString(this.news_id);
        dest.writeString(this.content);
    }

    public ArticleEntity() {
    }

    protected ArticleEntity(Parcel in) {
        this.id = in.readString();
        this.ownerid = in.readString();
        this.photo = in.readString();
        this.account_id = in.readString();
        this.designerId = in.readString();
        this.type = in.readString();
        this.timeline = in.readString();
        this.title = in.readString();
        this.click = in.readString();
        this.photourl = in.readString();
        this.author = in.readString();
        this.headphotourl = in.readString();
        this.news_id = in.readString();
        this.content = in.readString();
    }

    public static final Creator<ArticleEntity> CREATOR = new Creator<ArticleEntity>() {
        @Override
        public ArticleEntity createFromParcel(Parcel source) {
            return new ArticleEntity(source);
        }

        @Override
        public ArticleEntity[] newArray(int size) {
            return new ArticleEntity[size];
        }
    };
}
